package com.caiden_micheal.user.domain;

import com.caiden_micheal.base.dto.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Date;

@Data
public class User extends BaseDomain {
    private Long id;
    private String username;
    private String workNo;
    private Long orgId;
    private String orgName;
    private String avatar;
    private String password;
    private String phone;
    private String phoneDesensitization;
    private String email;
    private String name;
    private Integer gender;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date birth;
    private String wechat;
    private String wechatDesensitization;
    private String qq;
    private String qqDesensitization;
    private Integer disabled;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date dateOfEmployment;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date resignationDate;
    private Long positionOrgId;
    private String positionOrgName;
}
